//package com.alibaba.citrus.cr.order.open.api.facade.listener;
//
//import com.alibaba.cz.base.tool.log.Log;
//import com.alibaba.fastjson.JSON;
//import com.aliyun.openservices.ons.api.Action;
//import com.aliyun.openservices.ons.api.ConsumeContext;
//import com.aliyun.openservices.ons.api.Message;
//import com.aliyun.openservices.ons.api.MessageListener;
//import com.aliyun.openservices.ons.api.order.ConsumeOrderContext;
//import com.aliyun.openservices.ons.api.order.MessageOrderListener;
//import com.aliyun.openservices.ons.api.order.OrderAction;
//import org.springframework.stereotype.Component;
//
//import java.nio.charset.StandardCharsets;
//
///**
// * @description:
// * @author: yuhw
// * @date: 2024年01月07日 20:24
// **/
//@Component("shippingOrderCreatedMessageListener")
//public class ShippingOrderCreatedMessageListener implements MessageOrderListener {
//    private static Log log = Log.getLogger(ShippingOrderCreatedMessageListener.class);
//
//    @Override
//    public OrderAction consume(Message message, ConsumeOrderContext consumeOrderContext) {
//        log.info("ship_consumer");
//        System.out.println(System.currentTimeMillis());
//        return OrderAction.Success;
//    }
//
////    @Override
////    public Action consume(Message message, ConsumeContext consumeContext) {
////        log.info("shippingOrderCreatedMessageListener_consume:{}", JSON.toJSONString(message));
////        String messageBody = new String(message.getBody(), StandardCharsets.UTF_8);
////        log.info("shippingOrderCreatedMessageListener, messageId:{}, tag:{}, body:{}", message.getMsgID(),message.getTag(), messageBody);
////
////        return Action.CommitMessage;
////    }
////    public void sing(){
////        System.out.println(System.currentTimeMillis() + "....");
////    }
//}
